from pynput.keyboard import Key,Controller as key_cl
from pynput.mouse import Controller,Button
import time

def keyboard_input(string):
    keyboard = key_cl()
    keyboard.type(string)

def mouse_click():
    mouse = Controller()
    keyboard = key_cl()
    mouse.press(Button.left)
    mouse.release(Button.left)
    keyboard.press(Key.enter)


def main(number,string):
    time.sleep(1)
    for i in range(0,number):
        keyboard_input(string)
        mouse_click()
        time.sleep(0.5)

# if __name__ == "__main__":
#     main(1000,"可以轰炸你吗？")
